PARSER=parser
DEBUG=debug
HTTP_SEVER=http_sever
cc=g++
.PHONY:all
all:$(PARSER) $(DEBUG) $(HTTP_SEVER)

$(PARSER):parser.cc
	$(cc) -o $@ $^ -lboost_system -lboost_filesystem -std=c++11
$(DEBUG):debug.cc
	$(cc) -o $@ $^ -ljsoncpp -std=c++11 
$(HTTP_SEVER):http_sever.cc
	$(cc) -o $@ $^ -ljsoncpp -lpthread -std=c++11 
.PHONY:clean
clean:
	rm -f $(PARSER) $(DEBUG) $(HTTP_SEVER)
